package com.demo.hotel_book.mapper;

import com.demo.hotel_book.entity.Hotel;
import com.demo.hotel_book.entity.HotelOrder;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HotelOrderMapper {
    void insertOrder(HotelOrder hotelOrder);
    Hotel findById(Integer id);
    HotelOrder findByOrderId(Integer id);
    Hotel findHotelByOrderId(Integer id);
    Integer deleteOrder(Integer id);
    List<HotelOrder> findByUserId(int userId);
}